Release 10.1A: OpenEdge Data Management:
Database Administration
PROUTIL IDXBUILD qualifier
Rebuilds an index, packing or consolidating index records to use disk space as efficiently as possible.
Parameters
db-nameSpecifies the database you are using.
allSpecifies that you want to rebuild all your indexes. PROUTIL automatically rebuilds all your indexes without asking about disk space requirements.
table [owner-name.]table-nameSpecifies that you want to rebuild the indexes defined for the named table. When the
tableoption is used on the command line, PROUTIL automatically rebuilds the indexes defined for the table without asking about disk space requirements.areaarea-nameSpecifies that you want to rebuild all the indexes defined in the named area. When the
areaoption is used on the command line, PROUTIL automatically rebuilds the indexes defined for the area without asking about disk space requirements.schemaschema-ownerSpecifies that you want to rebuild all the indexes owned by the named
schema-owner. When theschemaoption is used on the command line, PROUTIL automatically rebuilds the indexes owned by theschema-ownerwithout asking about disk space requirements.activeindexesSpecifies that you want all currently active indexes rebuilt.
inactiveindexesSpecifies that you want all currently inactive indexes rebuilt. When an inactive index is rebuilt, it becomes active.
-threadsnFor Enterprise licenses, IDXBUILD is a multi-threaded operation by default. The
-threadsparameter allows you to turn off multi-threading. By default,nis equal to 1, indicating that the IDXBUILD is multi-threaded. Settingnto 0 turns off multi-threading.-threadnumnFor Enterprise licenses, when IDXBUILD is executed in a multi-threaded mode, the
-threadnumparameter allows you to control the maximum number of threads created. By default, the maximum number of threads,n, is equal to the number of CPUs. Settingnto 0 turns off multi-threading.-Tdir-nameSpecifies the name of the directory where the temporary files are stored. If you do not use this parameter, PROUTIL places temporary files in the current working directory.
-SSsort-file-directory-specificationIdentifies the location of a multi-volume sort file specification. If you use the Sort Directory Specification (
-SS) parameter, PROUTIL does not use the Temporary Directory (-T) parameter.-TBnSpecifies that the index rebuild will be performed using Speed Sort.
nindicates the allocated block size, in kilobytes.-TMnSpecifies the merge number.
nindicates the number of blocks or streams to be merged during the sort process.-BnSpecifies the number of blocks in the database buffers.
-SGnSpecifies that the index rebuild will use index grouping.
nindicates the number of index groups used by IDXBUILD and must be a value between 8 and 64. The default value is 48. Note that a temporary file is created for each index group.A large
-SGvalue requires more memory allocation and more file handles. To determine the amount of memory (in kilobytes) needed for each index group, add 1 to the merge number (the value of-TM) and multiply the sum by the speed sort block size (the value of-TB). Memory consumption for each index group equals (-TM+ 1) *-TB.If you do not specify
all,table,area, orschema, the following menu appears:
Table 20–2 describes the options:
In addition to rebuilding an index, IDXBUILD also:
Notes
- Backup your database prior to executing IDXBUILD. Under certain conditions, if the index rebuild crashes, the only method of recovery is to restore a backup.
- Use IDXFIX to repair and IDXCOMPACT to compress online.
- Use the Temporary Directory (-
T) startup parameter to identify or redirect temporary files created by the PROUTIL utility to a specified directory when sorting and handling space issues.- Use the Speed Sort (-
TB), Merge Number (-TM), Sort Grouping (-SG) and Blocks in Database Buffers (-B) startup parameters to improve index rebuild performance.- IDXBUILD does not repair corrupted record data.
- Use the following formulas to determine whether you have enough free space to sort the indexes:
- If you rebuild all the indexes in your database, sorting the indexes requires free space that can be as much as 75 percent of the total database size.
- If you rebuild an individual index, sorting that index requires free space that can be the size of one index entry * the number of records in the file * 3.
- The Index Rebuild utility rebuilds an index or set of indexes in three phases:
- The utility scans the database by area, clearing all index blocks that belong to the indexes and rebuilds and adds those blocks to the free-block list.
- The utility scans the database by area and rebuilds all the index entries for every data record. If you chose to sort the index, the utility writes the index entries to the sort file. Otherwise, the utility writes the index entries to the appropriate index at this point.
- If you indicated that you have enough space to sort the indexes, the utility compacts the index by sorting the index entries in the sort file into groups and entering those entries in one index at a time.
- For more information about using the IDXBUILD qualifier, see Chapter 13, " Managing Performance."
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |